<?php
namespace Models;
class Model{
    protected $pdo = null;

    public function __construct()
    {
        $dsn = 'mysql:host=localhost;dbname=news;charset=utf8;';
        $this->pdo = new \PDO($dsn, 'root', '123456');
    }
}